\documentclass[twoside]{book}

% Packages required by doxygen
\usepackage{calc}
\usepackage{doxygen}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{textcomp}
\usepackage[table]{xcolor}

% Font selection
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
\usepackage{amssymb}
\usepackage{sectsty}
\renewcommand{\familydefault}{\sfdefault}
\allsectionsfont{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}
\renewcommand{\DoxyLabelFont}{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}

% Page & text layout
\usepackage{geometry}
\geometry{%
  a4paper,%
  top=2.5cm,%
  bottom=2.5cm,%
  left=2.5cm,%
  right=2.5cm%
}
\tolerance=750
\hfuzz=15pt
\hbadness=750
\setlength{\emergencystretch}{15pt}
\setlength{\parindent}{0cm}
\setlength{\parskip}{0.2cm}
\makeatletter
\renewcommand{\paragraph}{%
  \@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@parafont%
  }%
}
\renewcommand{\subparagraph}{%
  \@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@subparafont%
  }%
}
\makeatother

% Headers & footers
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead[LE]{\fancyplain{}{\bfseries\thepage}}
\fancyhead[CE]{\fancyplain{}{}}
\fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}}
\fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}}
\fancyhead[CO]{\fancyplain{}{}}
\fancyhead[RO]{\fancyplain{}{\bfseries\thepage}}
\fancyfoot[LE]{\fancyplain{}{}}
\fancyfoot[CE]{\fancyplain{}{}}
\fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize Generated on Mon Jul 28 2014 23\-:42\-:42 for Tekdaqc Firmware by Doxygen }}
\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated on Mon Jul 28 2014 23\-:42\-:42 for Tekdaqc Firmware by Doxygen }}
\fancyfoot[CO]{\fancyplain{}{}}
\fancyfoot[RO]{\fancyplain{}{}}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\chaptermark}[1]{%
  \markboth{#1}{}%
}
\renewcommand{\sectionmark}[1]{%
  \markright{\thesection\ #1}%
}

% Indices & bibliography
\usepackage{natbib}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{5}
\makeindex

% Hyperlinks (required, but should be loaded last)
\usepackage{ifpdf}
\ifpdf
  \usepackage[pdftex,pagebackref=true]{hyperref}
\else
  \usepackage[ps2pdf,pagebackref=true]{hyperref}
\fi
\hypersetup{%
  colorlinks=true,%
  linkcolor=blue,%
  citecolor=blue,%
  unicode%
}

% Custom commands
\newcommand{\clearemptydoublepage}{%
  \newpage{\pagestyle{empty}\cleardoublepage}%
}


%===== C O N T E N T S =====

\begin{document}

% Titlepage & ToC
\hypersetup{pageanchor=false}
\pagenumbering{roman}
\begin{titlepage}
\vspace*{7cm}
\begin{center}%
{\Large Tekdaqc Firmware \\[1ex]\large 1.\-0.\-2.\-0 }\\
\vspace*{1cm}
{\large Generated by Doxygen 1.8.6}\\
\vspace*{0.5cm}
{\small Mon Jul 28 2014 23:42:42}\\
\end{center}
\end{titlepage}
\clearemptydoublepage
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
\hypersetup{pageanchor=true}

%--- Begin generated contents ---
\chapter{Main Page}
\label{index}\hypertarget{index}{}\input{index}
\chapter{Module Index}
\input{modules}
\chapter{Data Structure Index}
\input{annotated}
\chapter{File Index}
\input{files}
\chapter{Module Documentation}
\input{group__status__register}
\include{group__adcon__register}
\include{group__io__register}
\include{group__tekdaqc__firmware}
\include{group__adc__statemachine}
\include{group__analog__input}
\include{group__analog__input__multiplexer}
\include{group__board__temperature}
\include{group__command__state}
\include{group__di__statemachine}
\include{group__digital__input}
\include{group__digital__output}
\include{group__do__statemachine}
\include{group__tekdaqc__calibration}
\include{group__command__interpreter}
\include{group__tekdaqc__error}
\include{group__tekdaqc__firmware__libraries}
\include{group__ads1256__driver}
\include{group__data__types}
\include{group__flash__disk__driver}
\include{group__ethernet__driver}
\include{group__command__parser}
\include{group__tekdaqc__communication}
\include{group__update__rtc__driver}
\include{group__analog__input__constants}
\include{group__board__channel__constants}
\include{group__tle7232__driver}
\include{group__digital__input__driver}
\include{group__com__port__driver}
\include{group__calibration__table}
\include{group__debug__constants}
\include{group__tekdaqc__configuration}
\include{group__driver__debug}
\include{group__tekdaqc__locator}
\include{group__rtc__driver}
\include{group__tekdaqc__timers}
\include{group__telnet__server}
\chapter{Data Structure Documentation}
\input{struct_analog___input__t}
\input{struct_calibration_state__t}
\input{struct_digital___input__t}
\input{struct_digital___output__t}
\input{struct_tekdaqc___command_interpreter__t}
\input{struct_telnet_opts__t}
\input{struct_telnet_server__t}
\chapter{File Documentation}
\input{_a_d_c___state_machine_8c}
\input{_a_d_c___state_machine_8h}
\input{_a_d_s1256___driver_8c}
\input{_a_d_s1256___driver_8h}
\input{_analog___input_8c}
\input{_analog___input_8h}
\input{_analog_input___multiplexer_8c}
\input{_analog_input___multiplexer_8h}
\input{_board_temperature_8c}
\input{_board_temperature_8h}
\input{boolean_8h}
\input{_command_state_8c}
\input{_command_state_8h}
\input{_d_i___state_machine_8c}
\input{_d_i___state_machine_8h}
\input{_digital___input_8c}
\input{_digital___input_8h}
\input{_digital___output_8c}
\input{_digital___output_8h}
\input{_d_o___state_machine_8c}
\input{_d_o___state_machine_8h}
\input{ethernetif_8h}
\input{stm32f4xx__it_8c}
\input{_tekdaqc___b_s_p_8h}
\input{_tekdaqc___calibration_8c}
\input{_tekdaqc___calibration_8h}
\input{_tekdaqc___calibration_table_8c}
\input{_tekdaqc___calibration_table_8h}
\input{_tekdaqc___c_a_n_8c}
\input{_tekdaqc___c_a_n_8h}
\input{_tekdaqc___command_interpreter_8c}
\input{_tekdaqc___command_interpreter_8h}
\input{_tekdaqc___config_8c}
\input{_tekdaqc__config_8h}
\input{_tekdaqc___debug_8h}
\input{_tekdaqc___error_8c}
\input{_tekdaqc___error_8h}
\input{_tekdaqc___locator_8c}
\input{_tekdaqc___locator_8h}
\input{_tekdaqc___message_headers_8h}
\input{_tekdaqc___r_t_c_8c}
\input{_tekdaqc___r_t_c_8h}
\input{_tekdaqc___timers_8c}
\input{_tekdaqc___timers_8h}
\input{_tekdaqc___version_8h}
\input{_telnet_server_8c}
\input{_telnet_server_8h}
\input{_t_l_e7232___relay_driver_8c}
\input{_t_l_e7232___relay_driver_8h}
%--- End generated contents ---

% Index
\newpage
\phantomsection
\addcontentsline{toc}{chapter}{Index}
\printindex

\end{document}
